package com.aaa.entity.mht;

import com.aaa.entity.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_mht_plan")
public class MhtPlan {
    @Id
    private Integer id;
    private String planname;
    private Integer uid;
    private String code;
    private Integer status;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date begintime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endtime;
    private Date createtime;
    private Date updatetime;

    @Transient
    private User user;
}
